package text3;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class server {
    public static void main(String[] args) throws IOException {
        //1.创建对象并绑定端口
        ServerSocket ss = new ServerSocket(10006);

        //2.等待客户端来连接
        while (true) {
            Socket socket = ss.accept();
            new Thread(new myRunnable(socket)).start();
        }



    }
}
